take files from one folder and move to another folder in php

45

take files from one folder and move to another folder in php -

$source_file = 'foo/image.jpg';
$destination_path = 'bar/';
rename($source_file, $destination_path . pathinfo($source_file, PATHINFO_BASENAME));

Comments

Submit
0 Comments